<template>
  <view class="p-2">
    <!-- #ifdef APP -->
    <text v-html="yhxy"></text>
    <!-- #endif -->
    <!-- #ifdef MP-WEIXIN -->
    <rich-text v-html="yhxy"></rich-text>
    <!-- #endif -->
  </view>
</template>

<script>
const app = getApp();
import { getTableInquiry } from "@/api/global.js";
export default {
  data() {
    return {
      yhxy: "",
      form: {
        Primary_Key: "0",
        Primary_Key_Name: "Agreement_Type",
        Data: "agreement_info",
        page: 1, //页数
        limit: 1, //每页数据条数
      },
    };
  },
  methods: {
    async companyName(data) {
      const res = await getTableInquiry({
        data,
      });
      console.log(res);
      this.yhxy = res.tableData[0].Agreement_Main;
    },
    back() {
      uni.navigateBack();
    },
  },
  created() {
    this.companyName(this.form);
  },
};
</script>

<style lang="scss" scoped>
</style>